package com.shou.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 服务信息类
 * @author zyl65
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "serve_info")
public class ServeInfo extends GenericEntity<Long>{

	
	private Integer serveTypeId; //服务类型
	private Long userId; //用户id
	private Integer districtId; //区域id
	private String districtName; //区域名称
	private String address; //地址
	private String title; //标题
	private String contactName; //联系名称
	private String contactPhone; //联系电话
	private String discription; //描述
	private Date createTime; //创建时间
	private Integer serveStatus; //服务状态 1.正在进行中 2.已结束
	private Integer useStatus; //是否使用

	@Transient
	private String serveTypeName; //服务类型名称
	@Transient
	private Integer serveTypeColor; //服务类型颜色种类 1.黄色 2.红色 3.绿色
	
	@Transient
	private Integer isCollected; //是否收藏
	
	public ServeInfo(){}
	
	public ServeInfo(Long id,Integer serveTypeId, String districtName, String address, String title,
			String contactName, String contactPhone, String discription,Integer serveStatus,Date createTime) {
		super();
		this.id = id;
		this.serveTypeId = serveTypeId;
		this.districtName = districtName;
		this.address = address;
		this.title = title;
		this.contactName = contactName;
		this.contactPhone = contactPhone;
		this.discription = discription;
		this.serveStatus = serveStatus;
		this.createTime = createTime;
	}
	
	public Integer getServeTypeId() {
		return serveTypeId;
	}
	public void setServeTypeId(Integer serveTypeId) {
		this.serveTypeId = serveTypeId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Integer getDistrictId() {
		return districtId;
	}
	public void setDistrictId(Integer districtId) {
		this.districtId = districtId;
	}
	public String getDistrictName() {
		return districtName;
	}
	public void setDistrictName(String districtName) {
		this.districtName = districtName;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContactName() {
		return contactName;
	}
	public void setContactName(String contactName) {
		this.contactName = contactName;
	}
	public String getContactPhone() {
		return contactPhone;
	}
	public void setContactPhone(String contactPhone) {
		this.contactPhone = contactPhone;
	}
	public String getDiscription() {
		return discription;
	}
	public void setDiscription(String discription) {
		this.discription = discription;
	}	
	public Integer getServeStatus() {
		return serveStatus;
	}
	public void setServeStatus(Integer serveStatus) {
		this.serveStatus = serveStatus;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Integer getUseStatus() {
		return useStatus;
	}
	public void setUseStatus(Integer useStatus) {
		this.useStatus = useStatus;
	}
	@Transient
	public Integer getIsCollected() {
		return isCollected;
	}
	@Transient
	public void setIsCollected(Integer isCollected) {
		this.isCollected = isCollected;
	}	
	@Transient
	public String getServeTypeName() {
		return serveTypeName;
	}
	@Transient
	public void setServeTypeName(String serveTypeName) {
		this.serveTypeName = serveTypeName;
	}
	@Transient
	public Integer getServeTypeColor() {
		return serveTypeColor;
	}
	@Transient
	public void setServeTypeColor(Integer serveTypeColor) {
		this.serveTypeColor = serveTypeColor;
	}
	
}
